package com.ccc.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Destribute entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "destribute")
public class Destribute {

	// Fields

	private Integer id;
	private Integer manufacturers;
	private Integer agents;
	private Integer retailers;

	// Constructors

	/** default constructor */
	public Destribute() {
	}

	/** full constructor */
	public Destribute(Integer manufacturers, Integer agents, Integer retailers) {
		this.manufacturers = manufacturers;
		this.agents = agents;
		this.retailers = retailers;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "manufacturers", nullable = false)
	public Integer getManufacturers() {
		return this.manufacturers;
	}

	public void setManufacturers(Integer manufacturers) {
		this.manufacturers = manufacturers;
	}

	@Column(name = "agents", nullable = false)
	public Integer getAgents() {
		return this.agents;
	}

	public void setAgents(Integer agents) {
		this.agents = agents;
	}

	@Column(name = "retailers", nullable = false)
	public Integer getRetailers() {
		return this.retailers;
	}

	public void setRetailers(Integer retailers) {
		this.retailers = retailers;
	}

}